{% extends 'base.html' %}
{% block title %}Welcome{% endblock %}

{% block content %}

Hello {{ user.email }}

{% for c in user.constituencies.all %}
 <a href="{% url constituency c.slug %}">{{ c.name }}</a>,
{% endfor %}

{% if form %}
<form action="" method="post">
{{ form.as_p }}
<input type="submit" />
</form>
{% endif %}


{% endblock %}
